#!/bin/sh
cd ../go-orm
git pull
go mod tidy

cd ../go-im
git pull
go mod tidy
go build -o webim

scount=`ps -fe |grep "webim" | grep -v "grep" | wc -l`
if [ $scount -gt 0 ]; then
ps -eaf |grep "webim" | grep -v "grep"| awk '{print $2}'|xargs kill -9
fi

nohup ./webim >webim.log 2>&1 &
